package org.hishen.example.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;

import org.hishen.example.entity.system.User;

/**
 * 基础数据类型
 * @author panda
 *
 */
@MappedSuperclass	//jpa 基类标识
public abstract class AbstractBaseEntity implements Serializable {
	
	private static final long serialVersionUID = 1L;

	/** 插入用户id */
	@ManyToOne
	private User insertUser;
	
	/** 插入时间 */
	private Date insertTime;

	/** 更新用户id */
	@ManyToOne
	private User updateUser;
	
	/** 更新时间 */
	private Date updateTime;
	
	/** 全局ID */
	@Column(length = 36)
	private String globalId;

	public User getInsertUser() {
		return insertUser;
	}

	public void setInsertUser(User insertUser) {
		this.insertUser = insertUser;
	}

	public Date getInsertTime() {
		return insertTime;
	}

	public void setInsertTime(Date insertTime) {
		this.insertTime = insertTime;
	}

	public User getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(User updateUser) {
		this.updateUser = updateUser;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getGlobalId() {
		return globalId;
	}

	public void setGlobalId(String globalId) {
		this.globalId = globalId;
	}

}
